package ${modulePackage}.model;

import lombok.Data;
import lombok.experimental.Accessors;
import javax.persistence.Column;
import lombok.EqualsAndHashCode;
import cn.jimjim.framework.code.generator.common.model.BaseModel;

<#list fields as field>
    <#if field.columnType == "enum">
import  ${field.fieldTypeFullName};
    </#if>
</#list>

/**
 * @author ${userName}
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true,onlyExplicitlyIncluded = true)
public class ${className} extends BaseModel<${className}> {
<#list fields as field>
    <#if field.columnName !="id">
    /**
    *  ${field.comment}
    */
    @Column(name = "${field.columnName}")
	private ${field.fieldTypeName} ${field.fieldName};
    </#if>
</#list>
}
